﻿/**********************************************************************
 * @file   OperLoad.h
 * @brief  频谱载荷操作器 - 创建载荷
 * @author XingXuanCi (xingxuanci@diso.cn)
 * @date   2024-11-25
 *********************************************************************/
#ifndef _OperatorsSEASubSystem_H
#define _OperatorsSEASubSystem_H

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"


namespace Acoustics
{
    class FITKAbstractSEASubSys;
}

namespace GUIOper
{
    /**
     * @brief 频谱载荷操作器创建操作器
     * @author XingXuanCi (xingxuanci@diso.cn)
     * @date   2024-11-25
     */
    class OperLoad :public Core::FITKActionOperator
    {
        Q_OBJECT;
    public:
        /**
         * @brief Construct a new Operators Create SubSystem object
         * @author XingXuanCi (xingxuanci@diso.cn)
         * @date   2024-11-25
         */
        explicit OperLoad() = default;
        /**
         * @brief Destroy the Operators Create SubSystem object
         * @author XingXuanCi (xingxuanci@diso.cn)
         * @date   2024-11-25
         */
        virtual ~OperLoad() = default;
        /**
         * @brief 执行
         * @return true 成功
         * @return false 失败
         * @author XingXuanCi (xingxuanci@diso.cn)
         * @date   2024-11-25
         */
        virtual bool execGUI() override;
        /**
         * @brief 执行结果处理
         * @return true 成功
         * @return false 失败
         * @author XingXuanCi (xingxuanci@diso.cn)
         * @date   2024-11-25
         */
        virtual bool execProfession() override;

    protected:
        /**
         * @brief    创建频谱载荷操作器
         * @param[i] actionName 动作名称
         * @author   XingXuanCi (xingxuanci@diso.cn)
         * @date     2024-11-25
         */
        void createLoadOper(QString actionName);

    };    
    // 按钮注册相关操作
    Register2FITKOperatorRepo(actionLoadVpeed, OperLoad);
    Register2FITKOperatorRepo(actionLoadAngularVelocity, OperLoad);
    Register2FITKOperatorRepo(actionLoadAcceleratedVelocity, OperLoad);
    Register2FITKOperatorRepo(actionLoadForce, OperLoad);
    Register2FITKOperatorRepo(actionLoadMoment, OperLoad);
    Register2FITKOperatorRepo(actionLoadSoundPressure, OperLoad);
    Register2FITKOperatorRepo(actionLoadEnergy, OperLoad);
    Register2FITKOperatorRepo(actionLoadPower, OperLoad);
}

#endif
